from rest_framework.viewsets import ModelViewSet

from goods.models import GoodsChannel
from meiduo_admin.my_paginate import MyPageNumberPagination
from . import channels_serializers

# 1.频道管理
class ChannelsViewSet(ModelViewSet):
    pagination_class = MyPageNumberPagination
    serializer_class = channels_serializers.ChannelsSerializer
    queryset = GoodsChannel.objects.order_by('id').all()




